package com.shiguiwu.springmybatis.designpattern.decorator;

/**
 * @description: 抽象装饰角色
 * @author: stone
 * @date: Created by 2021/8/27 10:31
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.decorator
 */
public abstract class SsoDecorator implements HandlerInterceptor {
    private HandlerInterceptor handlerInterceptor;

    public SsoDecorator(HandlerInterceptor handlerInterceptor) {
        this.handlerInterceptor = handlerInterceptor;
    }

    @Override
    public boolean preHandle(String request, String response, Object handler) {
        return handlerInterceptor.preHandle(request, response, handler);
    }
}
